package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 雨排口天气数据表
 *
 * @author system
 * @since 2025-01-11
 */
@Getter
@Setter
@TableName("rainfall_outlet_weather_data")
@Schema(description = "雨排口天气数据表")
public class RainfallOutletWeatherData implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "站点ID")
    @TableField("site_id")
    private Integer siteId;

    @Schema(description = "站点名称")
    @TableField("site_name")
    private String siteName;

    @Schema(description = "数据时间")
    @TableField("data_time")
    private LocalDateTime dataTime;

    @Schema(description = "因子值")
    @TableField("factor_value")
    private BigDecimal factorValue;

    @Schema(description = "降雨量(mm)")
    @TableField("rain_amount")
    private BigDecimal rainAmount;

    @Schema(description = "天气类型：1-晴，2-多云，3-阴，4-雨，5-雪")
    @TableField("weather_type")
    private String weatherType;

    @Schema(description = "天气名称：晴、多云、阴、雨、雪")
    @TableField("weather_name")
    private String weatherName;

    @Schema(description = "分钟数，默认60分钟")
    @TableField("minutes")
    private Integer minutes;

    @Schema(description = "数据来源：API-接口拉取，MANUAL-手工录入")
    @TableField("data_source")
    private String dataSource;

    @Schema(description = "数据是否有效：1-有效，0-无效")
    @TableField("is_valid")
    private Boolean isValid;

    @Schema(description = "园区id")
    private String parkId;

    @Schema(description = "公司id")
    private String companyId;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;
}
